package com.tianzhu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the PERSISTENT_LOGINS database table.
 * 
 */
@Entity
@Table(name="PERSISTENT_LOGINS")
@NamedQuery(name="PersistentLogin.findAll", query="SELECT p FROM PersistentLogin p")
public class PersistentLogin implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="SERIES",unique=true, nullable=false)
	private String series;
	
	
	@Temporal(TemporalType.DATE)
	@Column(name="LAST_USED", nullable=false)
	private Date lastUsed;
	
	
	@Column(name="TOKEN",nullable=false)
	private String token;
	
	
	@Column(name="USERNAME",nullable=false)
	private String username;

	public PersistentLogin() {
	}
	
	public PersistentLogin(String username,String series,String token,Date lastUsed) {
		
	}
	
	public String getSeries() {
		return this.series;
	}

	public void setSeries(String series) {
		this.series = series;
	}

	public Date getLastUsed() {
		return this.lastUsed;
	}

	public void setLastUsed(Date lastUsed) {
		this.lastUsed = lastUsed;
	}

	public String getToken() {
		return this.token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}